package com.gao.io;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public class FileInputStreamDemo1 {
    public static void main(String[] args) throws IOException {
        FileInputStream stream = new FileInputStream("E://A.text");
        int read = stream.read();
        System.out.println(read);
        int i;
        while ((i = stream.read()) != -1) {
            System.out.println((char) i);
        }
    }
}
